<?php

class NegativeCommentForm extends CFormModel {

    public $informantname;
    public $comments;
    public $source;
    public $date;
    public $country;
    public $suggestion;
    public $verifyCode;

    public function rules() {
        return array(
            array('comments, source, date', 'required'),
            array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements()),
        );
    }

    public function attributeLabels() {
        return array(
            'informantname' => 'Informant Name',
            'comments' => 'Comments on JGD',
            'source' => 'Source',
            'date' => 'Date',
            'country' => 'Country',
            'suggestion' => 'Your suggestion to solve the situation',
            'verifyCode' => 'Turing',
        );
    }

}